<template>
  <div class="app-box">
    <el-container>
      <el-header class="header-box">
        <topHeader></topHeader>
      </el-header>
      <div class="contain-box">
        <el-aside class="el_aside" >
          <leftMenu></leftMenu>
        </el-aside>
        <div class="main-box">
          <breadCrumbs style="height:40px;"></breadCrumbs>
          <el-main class="main webkitScrollBar">
            <transition :name="'fade'">
              <router-view></router-view>
            </transition>
          </el-main>
        </div>

      </div>
    </el-container>
  </div>
</template>

<script>
import topHeader from "@/components/header.vue";
import leftMenu from "@/components/leftMenu/leftMenu.vue"
import breadCrumbs from "@/components/breadCrumbs/breadCrumbs.vue"
export default {
  components:{topHeader,leftMenu,breadCrumbs},
    data(){
    return{
      routerName:""
    }
  }
};
</script>

<style scoped>
.contain-box{
  height: calc(100vh - 60px);
  display: flex;
}
.app-box{
  min-height: 100vh;
}
.header-box{
  box-shadow: 0 3px 3px rgb(223, 223, 223);
  z-index: 33;
  background-color: rgb(255, 255, 255);
}
.main{
  height: calc(100vh - 40px - 60px - 40px);
  /* overflow: auto; */
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  padding: 0;
}
.el_aside{
  height: inherit;
  max-width: 200px;
}
.main-box{
  height: inherit;
  flex-grow: 1;
  padding: 20px;
}
.fade-enter-active, .fade-leave-active {
  transition: 0.5s;
  position: absolute;
  z-index: 10;
  width: 100%;
  left: 0;
  top: 0;
}
.fade-enter, .fade-leave-to  {
  opacity: 0;
  transform: translateY(-100px);
}
</style>
